package com.jmb.api.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jmb.api.entity.InterfaceCaseSuite;
import com.jmb.api.vo.Interface.Case.Suite.InterfaceCaseSuiteVO;
import com.jmb.api.web.service.InterfaceCaseSuiteService;
import com.jmb.api.web.mapper.InterfaceCaseSuiteMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 金梦博
* @description 针对表【t_interface_case_suite】的数据库操作Service实现
* @createDate 2025-09-25 17:19:19
*/
@Service
public class InterfaceCaseSuiteServiceImpl extends ServiceImpl<InterfaceCaseSuiteMapper, InterfaceCaseSuite>
    implements InterfaceCaseSuiteService{
    @Autowired
    private InterfaceCaseSuiteMapper interfaceCaseSuiteMapper;

    /**
     * 查询用例，获取测试套件详情
     * @param suiteId 测试套件编号
     * @return 测试套件详情
     */
    @Override
    public InterfaceCaseSuiteVO findInterfaceCaseSuiteById(Long suiteId) {
        InterfaceCaseSuite interfaceCaseSuite = interfaceCaseSuiteMapper.selectById(suiteId);
        InterfaceCaseSuiteVO interfaceCaseSuiteVO = new InterfaceCaseSuiteVO();
        BeanUtils.copyProperties(interfaceCaseSuite,interfaceCaseSuiteVO);
        return interfaceCaseSuiteVO;
    }
}




